<div class="modal-header">
    <h3 class="modal-title">编辑班级信息</h3>
</div>
<div class="modal-body">
    <form role="form" name="form">        
         <div class="form-group">
             <label>序号</label>
			 <label>{{id}}</label>
         </div>
        <div class="form-group">
            <label>名称</label>
            <input type="text" class="form-control" name="name" data-ng-model="name" placeholder="输入名称" autofocus ng-pattern="restrictNumber"
                ng-class="{'input--error': form.name.$valid == false, 'input': form.name.$valid == true}">        
					   <span class="help-block" data-ng-show="errorClass == 'has-error name'" data-ng-bind="errorMessage"></span>
        </div>
         <input type="hidden" name="id" data-ng-model="id">
         <input type="hidden" name="oldname" value="{{name}}" />
        <div class="modal-footer">
            <button class="btn btn-success btn-flat {{blockButtonsClass}}" ng-disabled="!(form.$valid && name)"
                type="button" ng-click="editclass()">保存</button>
            <button class="btn btn-default btn-flat" type="button" ng-click="closeModal()">取消</button>
        </div>
    </form>
</div>
